package com.pureut.production.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.production.domain.LineWarehouse;
import com.pureut.production.domain.dto.LineWarehouseDto;
import com.pureut.production.domain.dto.WorkshopDto;
import com.pureut.production.domain.dto.storage.LineWarehouseChildrenDto;
import com.pureut.production.domain.vo.LineWarehouseVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author: CM
 * @date: 2023/2/6    15:16
 */
@Mapper
public interface LineWarehouseMapper extends BaseMapper<LineWarehouse> {

    /**
     * 查询所有仓库名称
     * @return
     */
   List<LineWarehouseDto> selectWorkshopCode(LineWarehouseVo lineWarehouseVo);

    /**
     * 查询线边仓库列表
     */
    List<LineWarehouseDto> getlineList(LineWarehouseVo lineWarehouseVo);

    /**
     * 根据线边仓id查看列表
     * @param id
     * @return
     */
    LineWarehouseDto getViewId(Long id);

    /**
     * 查询树状图下级结构
     * @return
     */
    List<LineWarehouseChildrenDto> selectLineWareInfo(String workshopCode);

    /**
     * 获取车间列表
     * @return
     */
    List<WorkshopDto> getWorkshop();
}
